package com.itic.appbase.framework.type;

public enum SortField {
	Sale("sale","s.total_sale"),Team("team","s.team_count");
	private String type;
	
	private String field;

	SortField(String type, String field) {
		this.type = type;
		this.field = field;
	}
	
	public  static SortField getSortFile(String type) {
		SortField sortField =null;
		switch (type) {
		case "sale":
			sortField = SortField.Sale;
			break;
		case "team":
			sortField = SortField.Team;
			break;
		}
		return sortField;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}
	
}
